#region (c) 2014 THN Solutions LLC. - All rights reserved
/*
Simplified BSD License (BSD)
Copyright (c) 2014, THN Solutions LLC. ( www.ThnSolutions.com )
Author: Nguyễn, M. Hải                 ( www.Minh-Hai.com     )
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above copyright notice, this 
      list of conditions and the following disclaimer.

    * Redistributions in binary form must reproduce the above copyright notice, 
      this list of conditions and the following disclaimer in the documentation 
      and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
POSSIBILITY OF SUCH DAMAGE.
*/
#endregion

#region Record of Change
//             							CHANGE HISTORY
// -------------------------------------------------------------------------------------
// |   DATE    | DEVELOPER  | DESCRIPTION                                              |
// -------------------------------------------------------------------------------------
// | 09-Nov-09 | LamNPT      | First creation.                                          |
// -------------------------------------------------------------------------------------
//
#endregion

#region Record of Audit
//             							REVIEW HISTORY
// -------------------------------------------------------------------------------------
// |   DATE    | REVIEWER   | NOTES                                                    |
// -------------------------------------------------------------------------------------
// -------------------------------------------------------------------------------------
//
#endregion

#region Using directives
using System;

using Thn;
using System.Drawing;
#endregion

namespace Thn.Interface.Vcl
{
    /// <summary>
    /// Custom render context for <see cref="Scroller"/> control.
    /// </summary>
#if DEBUG 
    public
#else
    public
#endif 
    class ScrollerRenderContext : RenderContext
    {
        #region Properties

        #region Start region
        private RectangleF mStartRegion;
        /// <summary>
        /// Gets or Sets value of Before.
        /// </summary>
        public RectangleF StartRegion
        {
            get { return mStartRegion; }
            set { mStartRegion = value; }
        }
        #endregion  
        
        #region End Region
        private RectangleF mEndRegion;
        /// <summary>
        /// Gets or Sets value of After.
        /// </summary>
        public RectangleF EndRegion
        {
            get { return mEndRegion; }
            set { mEndRegion = value; }
        }
        #endregion  

        #region Third Region
        private RectangleF mThirdRegion;
        /// <summary>
        /// Gets or Sets value of Third
        /// </summary>
        public RectangleF ThirdRegion
        {
            get { return mThirdRegion; }
            set { mThirdRegion = value; }
        }
        #endregion  

        #region Handler Region
        private RectangleF mHandlerRegion;
        /// <summary>
        /// Gets or Sets region of handler button of the scroller control.
        /// </summary>
        public RectangleF HandlerRegion
        {
            get { return mHandlerRegion; }
            set { mHandlerRegion = value; }
        }
        #endregion  

        #region Track Region
        private RectangleF mTrackRegion;
        /// <summary>
        /// Gets or Sets region whole region of the scroller control without start button and end button.
        /// </summary>
        public RectangleF TrackRegion
        {
            get { return mTrackRegion; }
            set { mTrackRegion = value; }
        }
        #endregion  

        #region Start Arrow
        private RectangleF mStartArrow;
        /// <summary>
        /// Gets or Sets region of start button of a scroller.
        /// The start button depends on dimension value, a value of <see cref="ScrollerDimension"/> enum, of scroller control.
        /// <para>
        /// With horizontal scroller the start button is left button.
        /// </para>
        /// <para>
        /// With vertical scroller the start button is up button.
        /// </para>
        /// </summary>
        public RectangleF StartArrow
        {
            get { return mStartArrow; }
            set { mStartArrow = value; }
        }
        #endregion

        #region End Arrow
        private RectangleF mEndArrow;
        /// <summary>
        /// Gets or Sets region of end button of a scroller.
        /// The end button depends on dimension value, a value of <see cref="ScrollerDimension"/> enum, of scroller control.
        /// <para>
        /// With horizontal scroller the end button is right button.
        /// </para>
        /// <para>
        /// With vertical scroller the start button is down button.
        /// </para>
        /// </summary>
        public RectangleF EndArrow
        {
            get { return mEndArrow; }
            set { mEndArrow = value; }
        }
        #endregion

        #region Third Arrow
        private RectangleF mThirdArrow;
        /// <summary>
        /// Gets or Sets region of third button of the control.
        /// <para>The third button locates beside the start button.</para>
        /// </summary>
        public RectangleF ThirdArrow
        {
            get { return mThirdArrow; }
            set { mThirdArrow = value; }
        }
        #endregion  

        #region Start Button State
        private ButtonState mStartButtonState = ButtonState.Normal;
        /// <summary>
        /// Gets or Sets mouse status of start button.
        /// </summary>
        public ButtonState StartButtonState
        {
            get { return mStartButtonState; }
            set { mStartButtonState = value; }
        }
        #endregion  

        #region End Button State
        private ButtonState mEndButtonState = ButtonState.Normal;
        /// <summary>
        /// Gets or Sets mouse status of end button.
        /// </summary>
        public ButtonState EndButtonState
        {
            get { return mEndButtonState; }
            set { mEndButtonState = value; }
        }
        #endregion  

        #region Third Button State
        private ButtonState mThirdButtonState = ButtonState.Normal;
        /// <summary>
        /// Gets or Sets mouse status of third button.
        /// </summary>
        public ButtonState ThirdButtonState
        {
            get { return mThirdButtonState; }
            set { mThirdButtonState = value; }
        }
        #endregion          

        #region Handler State
        private ButtonState mHandlerState = ButtonState.Normal;
        /// <summary>
        /// Gets or Sets mouse status of handler button.
        /// </summary>
        public ButtonState HandlerState
        {
            get { return mHandlerState; }
            set { mHandlerState = value; }
        }
        #endregion  

        #endregion
        
        #region Constructors
        /// <summary>
        /// Default constructor.
        /// </summary>
        public ScrollerRenderContext() 
        { }
        #endregion
    }
}
